#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>

int main(int argc,char *argv[])
{
	const char *whosts[] =
	{
		"www.baidu.com",
		"www.163.com",
		"www.qq.com",
		"www.sina.com",
		"www.sohu.com",
		"www.apple.com",
		"www.yahoo.com",
		"www.bing.com",
		"www.amazon.com",
		"www.amazon.cn",
		"www.taobao.com"
	};

	int ret = 0;
	int rfd = 6;
	int wfd = 7;

	int num = sizeof(whosts)/sizeof(char *);
	printf("whost num = %d\n",num);
	return 0;

	printf("myip:%s,myport:%s;remote ip:%s,remote port:%s.\n",
	 	getenv("TCPLOCALIP"),getenv("TCPLOCALPORT"),getenv("TCPREMOTEIP"),getenv("TCPREMOTEPORT"));
	sleep(1);
	close(rfd);
	close(wfd);
	exit(EXIT_SUCCESS);
}

